<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Address extends Model
{
    //指定表名
    protected $table = 'bill';
    //取消时间
    public $timestamps = false;
    //定义主键
    protected $primaryKey = 'bid';
    protected $fillable = ['b_uid','baddress','bconsignee','bphone','bpostalcode','bdate'];
    //

    /**
     * 获取地址的用户。
     */
    public function user()
    {
        return $this->belongsTo('App\Models\User','b_uid','uid');
    }
}
